/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.scoreacademicyear.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.scoreacademicyear.entity.ScoreAcademicYear;
import com.jeeplus.modules.scoreacademicyear.mapper.ScoreAcademicYearMapper;

/**
 * 每学年默认分数Service
 * @author 秦子洋
 * @version 2023-05-21
 */
@Service
@Transactional(readOnly = true)
public class ScoreAcademicYearService extends CrudService<ScoreAcademicYearMapper, ScoreAcademicYear> {

	@Autowired
	ScoreAcademicYearMapper scoreAcademicYearMapper;

	public ScoreAcademicYear get(String id) {
		return super.get(id);
	}
	
	public List<ScoreAcademicYear> findList(ScoreAcademicYear scoreAcademicYear) {
		return super.findList(scoreAcademicYear);
	}
	
	public Page<ScoreAcademicYear> findPage(Page<ScoreAcademicYear> page, ScoreAcademicYear scoreAcademicYear) {
		return super.findPage(page, scoreAcademicYear);
	}
	public List<ScoreAcademicYear> findAcademicYear() {
		return scoreAcademicYearMapper.findAcademicYear();
	}

	@Transactional(readOnly = false)
	public void save(ScoreAcademicYear scoreAcademicYear) {
		super.save(scoreAcademicYear);
	}
	
	@Transactional(readOnly = false)
	public void delete(ScoreAcademicYear scoreAcademicYear) {
		super.delete(scoreAcademicYear);
	}
	
}